
#ifndef TOUCH_H_61abf36d_9416_445e_acab_4e75af534b98
#define TOUCH_H_61abf36d_9416_445e_acab_4e75af534b98

#define TOUCH_DDR  DDRB
#define TOUCH_PORT PORTB
#define TOUCH_PIN  PINB
#define TOUCH_BIT  5
#define TOUCH_PWR  2

#ifdef __ASSEMBLER__

#else

void touch_set_low(void);
void touch_set_float(void);
void touch_set_high(void);
void touch_delay(uint8 uSec);
void touch_init(void);

uint8 touch_is_shorted(void);
uint8 touch_is_present(void);

uint8 touch_read_byte(void);
uint8 touch_write_byte( uint8 data );
void touch_read(uint8 *buffer,uint8 length);
void touch_write(uint8 *buffer,uint8 length);
uint8 touch_compare(uint8 *buffer,uint8 length);

#endif

#endif
